/*
 *
 *  This file is part of Cfu
 *
 *  Cfu is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *  
 *  Cfu is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *  
 *  You should have received a copy of the GNU General Public License
 *  along with Cfu. If not, see <http://www.gnu.org/licenses/>.
 *
 *  submitter.hpp - william le ferrand (william@corefarm.com) 29/04/2010 15:30
 *
 */


#ifndef CFU_SUBMIT_HPP_
#define CFU_SUBMIT_HPP_

// STL
#include <stdio.h>
#include <iostream>
#include <exception>

// QT
#include <QMenu>
#include <QMessageBox>
#include <QDebug>
#include <QApplication>

// CFU
#include <configuration.hpp>
#include <mainwindow.hpp>

class submitter_t 
{
  
public: 
  submitter_t (configuration_t *conf) ;
  void submit(QString &file, int ghz, int is_exr); 
  void sanity(QString &file) ;
  
  void setMainWindow (mainwindow_t *w) { _mainwindow = w; }
 private: 
  configuration_t *_conf; 
  mainwindow_t *_mainwindow; 

}; 

#endif
